<% adv = false%>
<div id="right">
	<div id="rightCont">	
        <div class="boeder">
            <div class="main-title"><strong>СТАТЬИ</strong> <%= @category ? "по меткам данного раздела/категории" : "анонсы новых статей" %></div>
						<% @tag_articles.each_with_index do |article, i| %>
									<div class="block">
                  	<div class="title"><%= link_to article.title, article_path(article)%> <span class="date">(<%= article.created_at.strftime('%d.%m.%Y')%>)</span></div>
                  	<% content = article.content.to_s.gsub(/<\/?[^>]*>/, "") %>
                  	<%= link_to text_teaser(content, 213), article_path(article)%>
											
							  			<%#= text_teaser(content, 213) %>
                      <%#= link_to "...»»»", article_path(article)%> 
                  </div>
									<% if i%3 == 0 && i != 0 && adv == false%>
										<% adv = true%>
										<div class="pointerBlock dashBordBlock">
									      <div class="content">
									          <img class="dashBord" src="/images/x.gif"/>
									      </div>
									  </div>
									<% end %>
						<% end %>
            
						<% if adv == false%>
								<% adv = true%>
								<div class="pointerBlock dashBordBlock">
							      <div class="content">
							          <img class="dashBord" src="/images/x.gif"/>
							      </div>
							  </div>
						<% end %>
   					
						<div class="block">
            	<div class="title"><%= link_to "все статьи", articles_path %></div>
            </div>
        </div>
    </div>
</div>
